package com.niiwoo.civet.scheduler.trigger;

import com.alibaba.dubbo.config.annotation.Reference;
import com.niiwoo.civet.trade.service.project.ProjectFlowDubboService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by dell on 2018/1/12.
 */
@Slf4j
@Component
public class OverInvestEndTimeFlowJobTrigger {

	@Reference(version = "1.0.0")
	private ProjectFlowDubboService projectFlowDubboService;

	@Scheduled(cron = "${project.over_invest_end_time}")
	public void resendPrize() {
		log.info("筹款超时job");
		projectFlowDubboService.overInvestEndTimeFlow();
	}
}
